package model.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import utils.FNVHash;

/**
 * The persistent class for the scheduleprice database table.
 * 
 */
public class MsgScheduleprice implements Serializable {

	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public Long hashid;

	public Long getHashid() {
		return FNVHash.hash64(orgcode+departdate.getTime()
				+schedulecode+reachstationcode+seattype);
	}
	
	public String areatype;

	public String busbrand;

	public Boolean cansell;

	@Temporal(TemporalType.DATE)
	public Date departdate;

	public String departtime;

	public Double discountprice;

	public String endstationcode;

	public String endstationname;

	public String endtime;

	public Double fullprice;

	public Double halfprice;

	public Boolean islinework;

	public Boolean isovertime;

	public String orgcode;

	public String reachstationcode;

	public String reachstationname;

	public Integer remainkidseats;

	public Integer remainseats;

	public String routecode;

	public String routename;

	public Integer rundistance;

	public Double runtime;

	public String schedulecode;

	public String scheduletype;

	public String schstatus;

	public String seattype;

	public String starttime;

	public Double studentprice;

	public String ticketentrance;

	public Double topprice;

	public Integer totalseats;

	public Long updateby;

	public Long updatetime;

	public String vehiclelvl;

	public String vehicleno;

	public String vehicletype;

	public String waitingroom;

	public MsgScheduleprice(String areatype, String busbrand,
			Boolean cansell, Date departdate, String departtime,
			Double discountprice, String endstationcode,
			String endstationname, String endtime, Double fullprice,
			Double halfprice, Boolean islinework, Boolean isovertime,
			String orgcode, String reachstationcode, String reachstationname,
			Integer remainkidseats, Integer remainseats, String routecode,
			String routename, Integer rundistance,
			Double runtime, String schedulecode, String scheduletype,
			String schstatus, String seattype, String starttime,
			Double studentprice, String ticketentrance, Double topprice,
			Integer totalseats, Long updateby, Long updatetime,
			String vehiclelvl, String vehicleno, String vehicletype,
			String waitingroom) {
		super();
		this.areatype = areatype;
		this.busbrand = busbrand;
		this.cansell = cansell;
		this.departdate = departdate;
		this.departtime = departtime;
		this.discountprice = discountprice;
		this.endstationcode = endstationcode;
		this.endstationname = endstationname;
		this.endtime = endtime;
		this.fullprice = fullprice;
		this.halfprice = halfprice;
		this.islinework = islinework;
		this.isovertime = isovertime;
		this.orgcode = orgcode;
		this.reachstationcode = reachstationcode;
		this.reachstationname = reachstationname;
		this.remainkidseats = remainkidseats;
		this.remainseats = remainseats;
		this.routecode = routecode;
		this.routename = routename;
		this.rundistance = rundistance;
		this.runtime = runtime;
		this.schedulecode = schedulecode;
		this.scheduletype = scheduletype;
		this.schstatus = schstatus;
		this.seattype = seattype;
		this.starttime = starttime;
		this.studentprice = studentprice;
		this.ticketentrance = ticketentrance;
		this.topprice = topprice;
		this.totalseats = totalseats;
		this.updateby = updateby;
		this.updatetime = updatetime;
		this.vehiclelvl = vehiclelvl;
		this.vehicleno = vehicleno;
		this.vehicletype = vehicletype;
		this.waitingroom = waitingroom;
		this.hashid = getHashid();
	}

	
	
	

}